package com.peanut.youfupay.service.must;


import com.alibaba.fastjson.JSON;
import com.peanut.youfupay.entity.request.SignContract;
import com.peanut.youfupay.entity.response.ApplyInvoiceResponseDTO;
import com.peanut.youfupay.entity.response.ResponseMessage;
import com.peanut.youfupay.enums.FunCodeEnum;
import com.peanut.youfupay.service.BaseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 个体工商业者签约
 * 签约唯一标识：Name，IdCard，LevyId，MerId 更换任意一个即需要重新签约
 * 更换卡号、手机号不需要签约
 *
 * @author peanut
 **/
@Slf4j
@Service("signContractService")
public class SignContractService extends BaseService {
    /**
     * @param funCodeEnum
     * @param signContract
     * @return
     * @throws Exception
     */
    public ResponseMessage doBusiness(FunCodeEnum funCodeEnum, SignContract signContract) {
        log.info("签约开始:{}，{}", funCodeEnum, signContract);
        ResponseMessage responseMessage = applyYouFuByHttpPost(funCodeEnum, signContract);
        log.info("签约结束:{}", responseMessage);
        return responseMessage;
    }

}
